-
Notifications
You must be signed in to change notification settings - Fork 849
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add workflow and CMake support for formatting #3340
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3340 +/- ##
==========================================
+ Coverage 90.57% 90.58% +0.01%
==========================================
Files 211 211
Lines 35536 35536
==========================================
+ Hits 32188 32192 +4
+ Misses 3348 3344 -4
Continue to review full report at Codecov.
|
#!/bin/bash | ||
|
||
SCRIPTDIR=$(cd $(dirname $0); pwd) | ||
BASEDIR=$(dirname $SCRIPTDIR) | ||
|
||
find $BASEDIR -name CMakeLists.txt -exec cmake-format -i {} + | ||
find $BASEDIR/src $BASEDIR/test $BASEDIR/tsl -name '*.cmake' -exec cmake-format -i {} + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is this script executed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the custom target inside the top-level CMakeLists.txt
.
Add a workflow to check that CMake files are correctly formatted as well as a custom target to format CMake files in the repository. This commit also runs the formatting on all CMake files in the repository.
Add a workflow to check that CMake files are correctly formatted as
well as a custom target to format CMake files in the repository. This
commit also runs the formatting on all CMake files in the repository.